package com.nlelpct.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("role_menu_resource")
public class RoleMenuResource extends Model<RoleMenuResource> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 1. 角色  2. 员工
     */
    private Integer lx;

    /**
     * 角色ID 或者 员工的ID
     */
    private String ownerId;

    /**
     * 资源类型（1.菜单、2.资源）
     */
    private Integer zylx;

    /**
     * 菜单或者资源ID
     */
    private String zyId;


    public static final String ID = "id";

    public static final String LX = "lx";

    public static final String OWNER_ID = "owner_id";

    public static final String ZYLX = "zylx";

    public static final String ZY_ID = "zy_id";


}
